import java.io.IOException;
import java.sql.SQLException;

/**
 * @author 后台赖骏
 *
 */
public class Crud {
    public static void main(String[] args) throws SQLException, IOException {
       //查看考试表
        SearchFunction.checkTime();
        System.out.println("=====================================");
        //查看试卷
        SearchFunction.checkExam();
        System.out.println("=====================================");
        //删除id为1的试题
        System.out.println(SearchFunction.deleteExam("1"));
        SearchFunction.checkExam();
        System.out.println("=====================================");
        //增加试题
        System.out.println(SearchFunction.addTopic());
        SearchFunction.checkExam();
        System.out.println("=====================================");
        //修改试题
        System.out.println(SearchFunction.updateExam());
        SearchFunction.checkExam();
        System.out.println("=====================================");
    }

}
